package cate.common.table.item;

import cate.common.table.ESheet;
import cate.common.table.d.GD;

/**
 * 碎片
 */
public class HeroPartSheet extends ESheet<HeroPartRow> {

    @Override
    public String getSheetName() {
        return "碎片";
    }

    public int getFragIdByHeroId(int pickHeroId) {
        for (HeroPartRow row : list) {
            if (row.heroTid == pickHeroId) {
                return row.id;
            }
        }
        return GD.NEGATIVE;
    }
}
